<template>
    <div>
        <el-row style="margin-top: 20px;">
            <el-col :span="6">
                <el-input placeholder="请输入姓名" v-model="name" clearable>
                </el-input>
            </el-col>
        </el-row>
        <el-row style="margin-top: 20px;">
            <el-col :span="6">
                <el-input placeholder="请输入身份证" v-model="idcard" clearable>
                </el-input>
            </el-col>
        </el-row>
        <el-row style="margin-left: -1215px; margin-top: 20px;">
            <el-button @click="idcardok">
                确认
            </el-button>
        </el-row>
    </div>
</template>

<script>
export default {
    name: "RentersInfoIdCard",
    data() {
        return {
            name:"",
            idcard:"",
        }
    },
    methods: {
        idcardok(){
            this.$http.get("/renters/rentersInfo/rentersVerifyIdCard",{
                params:{
                    name:this.name,
                    idcard:this.idcard,
                }
            }).then(resp =>{
                    alert(resp.data.message)
                    if(resp.data.code==200){
                        this.$router.push("/RentersInfo")
                    }
                })
        }
    },
    created() {

    }
}
</script>

<style scoped></style>